"""
Definition of models.
"""

from django.db import models

# Create your models here.
class Question(models.Model):
    question_text = models.CharField(max_length=200)
    pub_date = models.DateTimeField('date published')


class Choice(models.Model):
    question = models.ForeignKey(Question, on_delete=models.CASCADE)
    choice_text = models.CharField(max_length=200)
    votes = models.IntegerField(default=0)

class Student(models.Model):
	name = models.CharField(max_length=200)
	pub_date = models.DateTimeField('date published')


class DemoFieId(models.Model):
	#user_name = models.CharField(
	#autofield = models.AutoField();
	BooleanField = models.BooleanField(default=False)
	NullBooleanField = models.NullBooleanField(default=False)
	CharField = models.CharField(max_length=30)
	TextField = models.TextField()
	IntegerField = models.IntegerField()
	#DecimalField = models.DecimalField()
	FloatField = models.FloatField()
	DateField = models.DateField()
	TimeField = models.TimeField()
	DateTimeField = models.DateTimeField()
	FileField = models.FileField()
	#ImageField = models.ImageField()
class Demo1(models.Model):
	t1 = models.CharField(max_length=300,null=True)
	t2 = models.CharField(max_length=300,blank=True)

class Demo2(models.Model):
	BooleanField = models.BooleanField(default=False)
	NullBooleanField = models.NullBooleanField(default=False)
	CharField = models.CharField(max_length=30,null=True)
	TextField = models.TextField(null=True)
	IntegerField = models.IntegerField(null=True)
	#DecimalField = models.DecimalField()
	FloatField = models.FloatField(null=True)
	DateField = models.DateField(null=True)
	TimeField = models.TimeField(null=True)
	DateTimeField = models.DateTimeField(null=True)
	FileField = models.FileField(null=True)
	#ImageField = models.ImageField()
	#EmailFieId = models.EmailField(
class Demo3(models.Model):
	BigIntegerField = models.BigIntegerField(verbose_name="verbose_name123",name="nnname",primary_key=True,max_length=None,unique=True,blank=True)







